package tmt.usercenter.web.domain.enums;

import com.tmt.annotation.EnumDescriptor;
import com.tmt.annotation.parser.EnumAnnotationParser;

/**
 * 会员级别
 * Created by Stark on 2017/4/25.
 */
public enum TmtUserType {

	@EnumDescriptor(title="普通用户", description = "普通用户")
	USER,

	@EnumDescriptor(title="后台管理员", description = "后台管理员")
	MANAGER,

	@EnumDescriptor(title="超级管理员", description = "超级管理员")
	SYSADMIN;

	public static TmtUserType from(String title) {
		return EnumAnnotationParser.convertFromTitle(TmtUserType.class, title);
	}
}
